#include "Key.h"

Key::Key(int locx, int locy, int locz,int extraBit, vector<vector<vector<Floor*>>> floor)
{
	collision = false;
	dir = NODIR;
	theFloor = floor;
	x = locx;
	y = locy;
	z = locz;
	type = (ObjectType)extraBit;
	removeable = false;
}

void Key::collide(Object* collider)
{
	if(collider->getType()==TAIT){
		theFloor[x][y][z]->changeObject(NONE);
	}

}

Key::~Key(void)
{
}
